package com.canxi.earn.domain.bo;

import com.canxi.common.core.domain.TreeEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;
import com.canxi.common.core.domain.BaseEntity;
import com.canxi.common.core.validate.AddGroup;
import com.canxi.common.core.validate.EditGroup;


/**
 * 笑话分类业务对象 cx_joke_category
 *
 * @author ruoyi
 * @date 2024-09-05
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class CxJokeCategoryBo extends TreeEntity<CxJokeCategoryBo> {

    /**
     * 主键
     */
    private String id;

    /**
     * 父Id
     */
//    @NotBlank(message = "父Id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String pid;

    /**
     * 所有的父级Id
     */
//    @NotBlank(message = "所有的父级Id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String pids;

    /**
     * 分类名称
     */
    @NotBlank(message = "分类名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 0=不显示，1=显示
     */
    @NotBlank(message = "0=不显示，1=显示不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 排序
     */
//    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sort;


}
